package com.bjesc_b2c.app.appraiset.adapter;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.R;
import com.bjesc_b2c.app.appraiset.bean.TrackBean;

import java.util.List;

import app.pinggushi.bjesc.com.baserecyclerview.adapter.CommonAdapter;
import app.pinggushi.bjesc.com.baserecyclerview.adapter.base.ViewHolder;

/**
 * Created by yidong on 2017/8/31.
 */

public class FailExamineAdapter extends CommonAdapter<TrackBean> {

    public FailExamineAdapter(Context context, int layoutId, List<TrackBean> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void convertView(ViewHolder holder, TrackBean trackBean, final int position) {
        holder.setText(R.id.cc_name,trackBean.getDispatch_name()+"("+trackBean.getDispatch_id()+")");
//        holder.setText(R.id.tour_level,trackBean.getTour_level());
        holder.setVisible(R.id.tour_level, false);
        holder.setText(R.id.tv_car_name,trackBean.getTitle());
        holder.setText(R.id.tv_client_name,trackBean.getDealer_name());
        holder.setText(R.id.tv_dealer_address,trackBean.getDealer_address());
        holder.setText(R.id.tv_car_id,trackBean.getCar_id());
        holder.setText(R.id.tv_reservation_time,trackBean.getComplete_time());
        holder.setVisible(R.id.tv_sure_order, false);

    }

}
